package com.example.em.mapper;

import com.example.em.model.Attendance;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;

@Mapper
public interface AttendanceMapper {
    List<Map<String, Object>> findAllWithEmployeeInfo();
    Attendance findById(Long id);
    List<Map<String, Object>> findByEmployeeId(Long employeeId);
    List<Map<String, Object>> findByDate(String date);
    void insert(Attendance attendance);
    void update(Attendance attendance);
    void delete(Long id);
    List<String> findAllDepartments();
    void deleteTodayAttendance();
} 